<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Models\Classes;
use Illuminate\Http\Request;

class ClassController extends Controller
{
    public function page() {

        return Classes::orderBy('pa_sort','desc')
            ->paginate(
                Request::capture()->get('num',5)
            );
    }
}
